<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=ul>li, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        li {
            list-style: none;
            width: 310px;
            height: 120px;
            border: 20px solid #ccc;
            background-color: pink;
            margin-top: 10px;
        }
        
        li:nth-child(1) {
            border-image-source: url(./images/border.jpg);
            /* 切片 */
            border-image-slice: 167 167 167 167;
            /* 默认 拉伸平铺 */
            border-image-repeat: stretch;
        }
        
        li:nth-child(2) {
            border-image-source: url(./images/border.jpg);
            /* 切片 */
            border-image-slice: 167 167 167 167;
            /* 平铺方式 */
            border-image-repeat: round;
        }
        
        li:nth-child(3) {
            border-image-source: url(./images/border.jpg);
            /* 切片 */
            border-image-slice: 167 167 167 167;
            /* 平铺方式 中间往两边铺 可能铺不完*/
            border-image-repeat: repeat;
        }
    </style>
</head>

<body>
    <ul>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</body>

</html>